package com.qf.weapon;

/**
 * 法杖类
 */
public class Staff extends Weapon{

    private int range; // 法杖的攻击距离

    public Staff() {
        this.setType(1); // 法杖是远程武器
    }

    public Staff(String name, int type, int atk, int range) {
        super(name, type, atk);
        this.range = range;
    }

    public int getRange() {
        return range;
    }

    public void setRange(int range) {
        this.range = range;
    }

    @Override
    public int caculateDamage(HeroPlus heroPlus) {
        return (int) (heroPlus.getIntelligence() * 1.5 + this.getAtk());
    }
}
